<div id="main_block">

<?php if(isset($target_name)) {?>
<div class="target_name"><?php echo $target_name; ?>
<input type=button value="Edit" onclick="" style="font-size: 8px; margin-left: 3px;"/>
<input type=button value="Save" onclick="" disabled="disabled" style="float:right;"/>

</div>
<?php } ?>
<?php foreach($query as $article):?>
<?php echo OxArticle::from_id($article->idarticle)->preview(); ?>

<?php endforeach;?>
</div>